import request from '@/utils/request'

// 查询在线报修列表
export function listRepairOnline(query) {
  return request({
    url: '/services/repairOnline/list',
    method: 'get',
    params: query
  })
}

// 查询在线报修详细
export function getRepairOnline(id) {
  return request({
    url: '/services/repairOnline/' + id,
    method: 'get'
  })
}

// 新增在线报修
export function addRepairOnline(data) {
  return request({
    url: '/services/repairOnline',
    method: 'post',
    data: data
  })
}

// 修改在线报修
export function updateRepairOnline(data) {
  return request({
    url: '/services/repairOnline',
    method: 'put',
    data: data
  })
}

// 删除在线报修
export function delRepairOnline(id) {
  return request({
    url: '/services/repairOnline/' + id,
    method: 'delete'
  })
}
